package cn.anl.config;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
* @Author 安奈
* @Desc 加密文件配置类
*/
@Getter
@Component
@ConfigurationProperties("jwt.jks")
public class JwtAuthConfig {
    private String certificateStoreFile;
    private String password;
    private String alias;

    public void setCertificateStoreFile(String certificateStoreFile) {
        this.certificateStoreFile = certificateStoreFile;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }
}